package testClasses.misc;

import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.Mesh;
import com.jme3.texture.Texture;

import view.EViewList;
import view.View;

public class VSquareTile extends View {

	private Material material;	
	
	public VSquareTile(EViewList name, Material material) {
		this.material = material;
		this.name = name;
		loadInputListeners();
	}
	
	@Override
	public void update() {
		//MSquareTile fullModel = (MSquareTile) model;		
		
		Vector3f trans = new Vector3f(0,0,0);
		geometry.setLocalTranslation(trans);		
	}

	@Override
	public void initView() {
		//MSquareTile fullModel = (MSquareTile) model;
		String id = String.valueOf(modelKey.getValue());
		
		Mesh squareMesh = new FSquareMesh().buildMesh();
		
		geometry = new Geometry(id, squareMesh);
		geometry.setMaterial(material);
		update();		
	}

	@Override
	protected void loadInputListeners() {
		// TODO Auto-generated method stub
		
	}

}
